#ifndef FOODSELECT_H
#define FOODSELECT_H

#include <QWidget>
#include "sql.h"
#include "mylistwidget.h"
#include "fooditem.h"
namespace Ui {
class FoodSelect;
}

class FoodSelect : public QWidget
{
    Q_OBJECT

public:
    explicit FoodSelect(QWidget *parent = nullptr);
    ~FoodSelect();
    SQL sql;
    int index = 1;
    int size = 5;
    QList<FoodItem*> fooditemlist;
private:
    Ui::FoodSelect *ui;
signals:
    void selected(Food food);
};


#endif // FOODSELECT_H
